/* Copyright 2010 John L. Reilly

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */

package com.riq.entity;

import java.io.Serializable;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = "true")
public class Coordinate implements Serializable {
  	
  private static final long serialVersionUID = 1L;
  
  public String getPrimaryKey() {
	    // TODO Auto-generated method stub
	      return null;
  }
  
  @PrimaryKey
  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
  private Long coordinateId;	
	
  @Persistent
  private Long deptId; 
  
//  @Persistent
//  private Long alertId;
  
	@Persistent
	private Long objectId;
	
	@Persistent
	private String objectType;
	
  @Persistent
  private String latitudeId;
	
	@Persistent
	private Long thisTimeStamp;
	
  @Persistent
  private Long gpsTimeStamp;
  
  @Persistent
  private Double lastLat;
   
  @Persistent
  private Double lastLng;
  
  @Persistent
  private String gpsAccuracy;
  
  @Persistent
  private String type;
  
  @Persistent
  private Long targetLocationId;
  
	public Coordinate(Long deptId, 
//	        Long alertId, 
	        Long objectId, String objectType, String latitudeId, 
	        Long thisTimeStamp, Long gpsTimeStamp, Double lastLat, Double lastLng, String gpsAccuracy,
	        String type, Long targetLocationId) {
	  
	   this.deptId = deptId;
//	   this.alertId = alertId;
	   this.objectId = objectId;
	   this.objectType = objectType;
	   this.latitudeId = latitudeId;
	   this.thisTimeStamp = thisTimeStamp; 
       this.gpsTimeStamp = gpsTimeStamp;  
	   this.lastLat = lastLat;
	   this.lastLng = lastLng;
	   this.gpsAccuracy = gpsAccuracy; 
	   this.type = type;
	   this.targetLocationId = targetLocationId;
	  }
	
// GETS

  public Long getdeptId() {
    return deptId;
  }

//  public Long getalertid() {
//    return alertId;
//  }
  
	public Long getobjectId() {
		return objectId;
	}

	public String getobjectType() {
		return objectType;
	}

	public String getlatitudeId() {
		return latitudeId;
	}

	public Long getthisTimeStamp() {
		return thisTimeStamp;
	}
	
	public Long getgpsTimeStamp() {
		return gpsTimeStamp;
	}

	public Double getlastLat() {
        return lastLat;
    }

    public Double getlastLng() {
        return lastLng;
	}

    public String getgpsAccuracy() {
       return gpsAccuracy;
    }

    public String gettype() {
       return type;
    }  
  
    public Long gettargetLocationId() {
       return targetLocationId;
    } 

// SETS
	
	public void setdeptId(Long deptId) {
		this.deptId = deptId;
	}
  
//	public void setalertid(Long alertId) {
//    this.alertId = alertId;
//  }
  
	public void setobjectId(Long objectId) {
    this.objectId = objectId;
  }
  
	public void setobjectType(String objectType) {
		this.objectType = objectType;
	}
	
	public void setlatitudeId(String latitudeId) {
		this.latitudeId = latitudeId;
	}
  
    public void setthisTimeStamp(Long thisTimeStamp) {
        this.thisTimeStamp = thisTimeStamp;
    }
	
  	public void setgpsTimeStamp(Long gpsTimeStamp) {
 		this.gpsTimeStamp = gpsTimeStamp;
 	}
	
    public void setlastLat(Double lastLat) {
       this.lastLat = lastLat;
    }
  	
    public void setlastLng(Double lastLng) {
       this.lastLng = lastLng;
    }
 
    public void setgpsAccuracy(String gpsAccuracy) {
       this.gpsAccuracy = gpsAccuracy;
    }
  
    public void settype(String type) {
       this.type = type;
    }

    public void settargetLocationId(Long targetLocationId) {
       this.targetLocationId = targetLocationId;
    }
  
}